package com.googlecode.cryptoid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
	

	

public class Main extends Activity {
	
	static final int ASCII = 97;
	static int encoding = ASCII;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
    }
	
    public void toMessages(View button){
    	EditMatrix.newMatrix = false;
    	ViewMessage.newMessage = false;
    	Intent intent = new Intent(this, MessageList.class);
    	startActivity(intent);
    }
    
    public void toMatrices(View button){
    	Matrix.createUnit();
    	EditMatrix.newMatrix = false;
    	ViewMessage.newMessage = false;
    	Intent intent = new Intent(this, MatrixList.class);
    	startActivity(intent);
    }
    
    public void toNewMatrix(View button){
    	Matrix.createUnit();
    	EditMatrix.newMatrix = true;
    	ViewMessage.newMessage = true;
    	Intent intent = new Intent(this, EditMatrix.class);
    	startActivity(intent);
    	
    }
    
}